<?php 
$name = "Bộ";
$parent_name = "Tên Lớp";
$ctrl = "qlbo";
$parent_cat = "id_parent";
?>
<div id="content">
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    </div>
    <?php endif; ?>
        <div id="title_content">Sửa <?php echo $name; ?></div>
    <?php echo form_open_multipart($ctrl.'/sua_thong_tin/'.$id); ?>
        <table class="form_content" width="100%">
      	<tr>
            <td>Tên</td>
            <td>
                <?php if (form_error('name') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('name'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="name" size="35" maxlength="80" value="<?php echo set_value('name', $ten); ?>" /></td>
        </tr>
        
        <tr>
            <td>Tên la tinh</td>
            <td>
                <?php if (form_error('namelt') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('namelt'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="namelt" size="35" maxlength="80" value="<?php echo set_value('namelt', $ten_latin); ?>" /></td>
        </tr>
       
        <tr>
            <td><?php echo $parent_name; ?></td>
            <td>
                <?php if (form_error('cat_id') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('cat_id'), '<p>', '</p>'); ?></div> <?php } ?>
              
               <?php echo form_dropdown("cat_id", $dd_cat, set_value("cat_id", $id_parent)); ?>
                </td>
        </tr>
        
              
        <tr>
            <td colspan="2"><input type="submit" name="submit" value="Sửa" class="form_submit" /></td>
        </tr>
    </table>
    <?php echo form_close(); ?>
</div>